package com.yuyou.fn.educational.vo;


import com.yuyou.fn.common.util.Utils;
import com.yuyou.fn.educational.entity.Student;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: weiwenfeng
 * @Date: 2018/11/23
 */
public class DataCenterStudent implements Serializable {

    private String clientId;

    //1.原会员中心的memberId字段 2.新增学生成功返回值
    private String cid;

    // 客户全名
    private String fullName;

    //客户来源 1-班辅；2-个辅；3-全日制；4-官网；5-学生网；6-竞赛网站；7-CRM潜在客户；8-其他；22-誉优
    private int clientSourceTypeId;

    //客户身份1-学生；2-家长；3-教师
    private int clientRoleTypeId;

    //客户(这里只能是学生)在各个业务系统中的ID
    private String bizClientId;

    //客户(这里只能是学生)在各个业务系统中的编号
    private String bizClientCode ;

    //学生生日
    private String birthDay;

    //主要联系电话
    private String mainPhoneNum;

    public DataCenterStudent(){

    }

    public DataCenterStudent(Student student){
        //this.setClientId(String.valueOf(student.getStudentId())); 学生库那边自己处理
        this.setFullName(student.getName());
        // 誉优
        this.setClientSourceTypeId(22);
        this.setClientRoleTypeId(1);
        this.setBizClientId(String.valueOf(student.getStudentId()));
        this.setBizClientCode(student.getStudentNo());
        Date birthDay = student.getBirthday();
        this.setBirthDay(null != birthDay ? Utils.formatDate(birthDay, "yyyy-MM-dd") : "1970-01-01");
        this.setMainPhoneNum(student.getPhoneNo());
        this.setCid(student.getCid());
    }



    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public int getClientSourceTypeId() {
        return clientSourceTypeId;
    }

    public void setClientSourceTypeId(int clientSourceTypeId) {
        this.clientSourceTypeId = clientSourceTypeId;
    }

    public int getClientRoleTypeId() {
        return clientRoleTypeId;
    }

    public void setClientRoleTypeId(int clientRoleTypeId) {
        this.clientRoleTypeId = clientRoleTypeId;
    }

    public String getBizClientId() {
        return bizClientId;
    }

    public void setBizClientId(String bizClientId) {
        this.bizClientId = bizClientId;
    }

    public String getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(String birthDay) {
        this.birthDay = birthDay;
    }

    public String getMainPhoneNum() {
        return mainPhoneNum;
    }

    public void setMainPhoneNum(String mainPhoneNum) {
        this.mainPhoneNum = mainPhoneNum;
    }

    public String getBizClientCode() {
        return bizClientCode;
    }

    public void setBizClientCode(String bizClientCode) {
        this.bizClientCode = bizClientCode;
    }
}
